package io;

import java.io.FileInputStream;
import java.io.InputStreamReader;

/**
 * @Author wangzhipeng
 * @Date 2020-08-19 5:15 下午
 * @Description 转换流：将字节流转换成字符流
 */
public class TransferDemo {
    /**
     * 演示字节流转换成字符流
     *
     */
    public void demo() throws Exception{
        InputStreamReader in = new InputStreamReader(new FileInputStream("/Users/wangzhipeng/Desktop/a.txt"));
        //InputStreamReader in = new InputStreamReader(in,Charset.forname("UTF-8));3
        //InputStreamReader in = new InputStreamReader(in,charsetName);


    }
}
